<template>
	<view>
		<uni-popup ref="upinitiate" @change="meetingOpen" mode="center">
			<view class="bgfff width880 text-left ra12">
				<image @click="$refs.upinitiate.close()" mode="widthFix"
					class="image posiab zindex15 right30 top20 width50" src="/static/img/bi.png"></image>
				<view class="size36 color333 bold  zindex5 flex-ju-c  pt30">
					发起会议
				</view>
				<view class="pg50">
					<view class="bgeef6fa pg30 ra15 mb30 flex-ju-b">
						<view class=" flex-a-i  ">
							<image mode="widthFix" class="image width80 mr20" src="/static/img/huiyifaqi.png"></image>
							我的云会议室：{{room_cuid}}
						</view>
						<view @click="setup" class="flex-a-i color165FFF">
							<image mode="widthFix" class="image width50 " src="/static/img/yshezhi.png"></image>
							设置
						</view>
					</view>
					<el-checkbox v-model="ismic" @change="changemic" label="入会时关闭麦克风" />
					<el-checkbox v-model="iscam" @change="changecam" label="入会时关闭摄像头" />
				</view>
				<view class="flex-ju-c pg50">
					<el-button @click="startMeeting" type="primary" class="width1000 height80 bg165DFF">开始会议</el-button>
				</view>
			</view>
		</uni-popup>
	</view>
</template>

<script>
	export default {
		name:"push-meeting",
		props:['priv_room_cuid'],
		data() {
			return {
				ismic: true,
				iscam:true
			};
		},
		created() {
			//this.room_cuid = this.priv_room_cuid
			// if (uni.getStorageSync('info')) {
			// 	let infos = uni.getStorageSync('info')
			// 	this.huiyihao = infos.priv_room_cuid
			// 	this.priv_room_id = infos.priv_room_id
			// }
		},
		computed:{
			room_cuid(){
				return this.priv_room_cuid
			}
		},
		methods:{
			meetingOpen(){
				this.iscam =iscam
				this.ismic =ismic
			},
			changemic(e) {
				window.ismic=e
			},
			changecam(e) {
				window.iscam=e
			},
			open(){
				this.$refs.upinitiate.open()
			},
			close(){
				this.$refs.upinitiate.close()
			},
			startMeeting(){
				this.$emit('startMeeting',this.ismic,this.iscam)
			},
			setup(){
				this.$emit('setup')
			}
		}
	}
</script>

<style>

</style>